<?php
include_once "service.php";

$boardId = $_REQUEST['boardId'];
$dishId = $_REQUEST['dishId'];
$service = new Dcservice();
try {
    $service->dc($boardId, $dishId);
    header("Location:./dc.php?boardId=" . $boardId);
} catch (Error $error) {
    exit($error->getMessage());
}

